<!--
Author: Quan Van Sinh
Email : sinhvnb@vietnambiz.com
Mobile: 0972405165
-->
<?php include ADMIN_INCLUDE_DIR."/header.php";?>
<script type="text/javascript" language="javascript">
    function submitFormCategory(submitType){
        if(submitType=='exit'){
            $("#submitType").val('exit');
            $("#submitFrmPropertyOrder").click();
        }
    }
</script>
<div class="container_l">
    <form name="formPropertyAddCategory" id="formPropertyAddCategory" method="POST" action="" onsubmit="listbox_selectall('cat_order',true);">
        <div class="title_user"><img src="images/icon1.gif" />Sản phẩm</div>
        <div class="table_user">
            <div class="table_user_in2">
                <?php
                show_error();
                show_success();
                ?>
                <fieldset>
                    <legend accesskey="N">Sắp xếp</legend>
                    <div class="lineaddnew">
                        <div class="lineform">
                            <div class="divlabel">&nbsp;</div>
                            <div class="divform">
                                <div style="float:left;">
                                    <select id="cat_order" name="property_order[]" multiple style="width:250px;height:450px;">
                                        <?php
                                        for($i=0;$i<count($arrOrder);$i++) {
                                            if($option=='category') {
                                                echo '<option value="'.$arrOrder[$i]['cat_id'].'">'.$arrOrder[$i]['cat_title'].'</option>';
                                            }else if($option=='geo') {
                                                    echo '<option value="'.$arrOrder[$i]['geo_id'].'">'.$arrOrder[$i]['geo_title'].'</option>';
                                                }
                                        }
                                        ?>
                                    </select>
                                </div>
                                <div style="float:left;">
                                    <input type="button" value="Lên trên" name="moveUp" onclick="moveOptionUp(document.getElementById('cat_order'));" style="width:100px;margin-top:180px;margin-left:10px;margin-bottom:5px;"/><br>
                                    <input type="button" value="Xuống dưới" onclick="moveOptionDown(document.getElementById('cat_order'));" name="moveDown" style="width:100px;margin-left:10px;"/>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="spacer1"><span></span></div>
            </div>
            </fieldset>

            <div class="linesubmit">
                <input type="hidden" name="submitType" id="submitType" value="">
                <input type="submit" name="submitFrmPropertyOrder" id="submitFrmPropertyOrder" value="Lưu lại" class="button" />
                <input type="button" name="submitFrmPropertyOrderAndExit" onclick="javascipt:history.go(-1);" value="Thoát" class="button" />
            </div>

        </div>
</div>
</form>
</div>

<?php
include "inc/right.php";
include ADMIN_INCLUDE_DIR."/footer.php";
?>